#include <iostream>
using namespace std;
                                                                                             
class Person
{
public:
    int m_age;

public:
    void run()
    {
        cout << "person::run()" << endl;
    }
};
class Stuendt : public Person
{
public:
    int m_no;
    void study()
    {
        cout << "Student::study()" << endl;
    }
};
/*父类在前，子类在后*/
int main()
{
    Person person;
    Stuendt stu;
    stu.m_age = 22;
    stu.run();
    stu.m_no = 1;
    int length = sizeof(stu);
    cout << length << endl;
    cout << stu.m_age << endl;
    cout << stu.m_no << endl;
    return 0;
}
